package org.example.innovate.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jakarta.servlet.http.HttpServletRequest;
import org.example.innovate.common.CommonResponse;
import org.example.innovate.domain.Follow;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.innovate.vo.DishOneVo;
import org.example.innovate.vo.FollowVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【follow】的数据库操作Service
* @createDate 2025-03-13 17:00:29
*/
public interface FollowService extends IService<Follow> {
    void follow(Integer followerId, Integer followedId);
    void unfollow(Integer followerId, Integer followedId);
    Page<FollowVo> getFollowList(Integer followerId, Integer page);
    Page<FollowVo> getFanList(Integer currentUserId, Integer page);
    CommonResponse<List<DishOneVo>> getAll(HttpServletRequest request);
}
